;--------------------------------------
;
; prog1-1.asm
;
; Demonstration of MASM 6.0 simplified 
; segment directives in small memory
; model
;
;

; defines here

DOS_DISPLAY_STRING      equ            09h

; Use small memory model

     .Model     small

; Create stack

     .Stack                         ; 1 K by default

; Declare data segment

     .Data

; message to be printed

hello     db     10,13,'Hello Chuck!',10,13,'$' 
          

; Begin code segment

     .Code

; Start program here

     .Startup

;--------------------------------------
;
; Main body of program here
; where DOS interrupt 21h function
; 09h is used to print the now-
; infamous "Hello CHuck!" message
; to the screen
;

     mov     dx,offset hello        ; offset goes to dx
     mov     ah,DOS_DISPLAY_STRING  ; DOS function to display string
     int     21h                    ; DOS does printing

; End program and return to DOS

     .Exit

; End of ASSEMBLY source file

     END

;
;--------------------------------------
